package com.ruoyi.common.pms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.pms.dao.YytShopNoticeMapper;
import com.ruoyi.common.pms.entity.YytShopNotice;
import com.ruoyi.common.pms.service.YytShopNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺公告Service类
 *
 * @author tanxingxian
 * @date 2021-12-23 15:58
 */
@Service
public class YytShopNoticeServiceImpl extends ServiceImpl<YytShopNoticeMapper, YytShopNotice> implements YytShopNoticeService {

    @Autowired
    private YytShopNoticeMapper yytShopNoticeMapper;

    /**
     * 获取公告内容列表
     */
    @Override
    public List<String> getNotices(String shopId) {
        return yytShopNoticeMapper.getNotices(shopId);
    }
}
